<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    class fl{
        name='父类的属性'
        constructor(){
            console.log('父类的方法');
        }
    }
    class zl extends fl{
        constructor(){
            console.log('子类的方法');
            super()
            console.log(this);
        }
    }
    var a=new zl()
    console.log(a.name);
    
</script>